﻿
@{
    ViewData["Title"] = "SearchProductInfo";
}

<form asp-action="SearchProduct" method="post" class="searchBox input-group">
    <input id="input_txt" name="inputContext" type="text" class="form-control" placeholder="请输入书名" asp-route-chooseType="书名">
    <div class="input-group-prepend">
        <button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown">
            查询类型
        </button>
        <div class="dropdown-menu">
            <a id="a_name" class="dropdown-item" onclick="Choose">书名</a>
            <a id="a_type" class="dropdown-item" onclick="Choose">类型</a>
            <a id="a_author" class="dropdown-item" onclick="Choose">作者</a>
            <a id="a_publisher" class="dropdown-item" onclick="Choose">出版社</a>
            <a id="a_isbn" class="dropdown-item" onclick="Choose">ISBN</a>
        </div>
    </div>
    <button id="btn" class="btn btn-info btn-search">查找</button>
</form>

<script src="~/js/chooseInputType.js"></script>